<template>
  <div>
    <z-popconfirm
      title="是否确认删除?"
      ok-text="确定"
      cancel-text="取消"
      @confirm="confirm"
      @cancel="cancel"
    >
      <a href="#">删除</a>
    </z-popconfirm>
  </div>
</template>
<script>
import { defineComponent } from 'vue'
export default defineComponent({
  setup() {
    const confirm = () => {
      console.log(confirm, 'confirm')
    }
    const cancel = () => {
      console.log(cancel, 'cancel')
    }
    return {
      confirm,
      cancel,
    }
  },
})
</script>
